<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('indexadmin/index')}">{:L('USER_INDEXADMIN_INDEX')}</a></li>
			<li class="active"><a>{:L('MOD')}</a></li>
		</ul>
        <form class="form-horizontal js-ajax-forms" action="{:U('indexadmin/info_save')}" method="post">
			<fieldset>
				<div class="tabbable">
					<div class="tab-content">
							<php>$types_dis=$type?'disabled':''</php>
							<fieldset>
								<div class="control-group">
									<label class="control-label">姓名</label>
									<div class="controls">
										<input type="text" disabled value="{$user.name}"><span class="form-required">*  状态 
										<if condition="($user.type eq 0)"> 待绑卡
										<elseif condition="$user.type eq 1"/>上传证件照
										<elseif condition="$user.type eq 2"/>待审核
										<elseif condition="$user.type eq 3"/>学信认证
										<elseif condition="$user.type eq 4"/>填写联系信息
										<else /> 
										</if></span> 
										<if condition="($vo.type_borr eq 0)"> 待填写运营商信息
										<elseif condition="$vo.type_borr eq 1"/>无借款
										<elseif condition="$vo.type_borr eq 2"/>借款中
										<elseif condition="$vo.type_borr eq 3"/>逾期
										</if>
										<input type="hidden" name="options[id]" value="{$user.id}">
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">手机号码</label>
									<div class="controls">
										<input type="text" value="{$user.mobile}" disabled><span class="form-required">{$user.mob_name}&nbsp&nbsp&nbsp&nbsp服务密码&nbsp&nbsp<input type="text" name="options[mobile_pass]" value="{$user.mobile_pass}" disabled></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">登录密码</label>
									<div class="controls">
										<input type="text" name="options[password]" value="">
										<span class="help-block" style="color: red;">默认为空,填写则修改密码</span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">身份证</label>
									<div class="controls">
										<input type="text" disabled value="{$user.identity}">
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label">证件照</label>
									<div class="controls">
										<notempty name="user.url">
											<a  href="javascript:parent.image_preview_dialog('{:sp_get_image_preview_url_qk($user['url'])}',800,600);">
												<i class="fa fa-photo fa-fw"></i>
											</a>
										</notempty>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">银行卡号</label>
									<div class="controls">
									<select {$types_dis} name="options[bank]">
										<foreach name="bank" item="vo">
										<php>$tpl_selected=$user['bank']==$vo['bank_name']?"selected":"";</php>
										<option value="{$vo.bank_name}" {$tpl_selected}>{$vo.bank_name}</option>
										</foreach>
									</select>
									<input {$types_dis} type="text" name="options[silver_card]" value="{$user.silver_card}">
									<span class="form-required">&nbsp&nbsp&nbsp&nbsp预留手机号码&nbsp&nbsp<input {$types_dis} type="text" name="options[silver_number]" value="{$user.silver_number}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">注册时间</label>
									<div class="controls">
										<input type="text" value="{$user.crtime}" disabled>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">学信网账号:</label>
									<div class="controls">
										<input type="text" disabled value="{$user.xuexin_name}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp密码&nbsp&nbsp<input type="text" disabled value="{$user.xuexin_pass}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">qq</label>
									<div class="controls">
										<input {$types_dis} type="text" name="options[qq]" value="{$user.qq}">&nbsp&nbsp&nbsp&nbsp邮箱&nbsp&nbsp<input {$types_dis} type="text" name="options[email]" value="{$user.email}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">教育水平</label>
									<div class="controls">
										<select {$types_dis} name="options[education]">
											<foreach name="education" item="vo">
											<php>$tpl_selected=$user['education']==$vo['education']?"selected":"";</php>
											<option value="{$vo.education}" {$tpl_selected}>{$vo.education}</option>
											</foreach>
										</select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">常住地址</label>
									<div class="controls">
										<textarea {$types_dis} name="options[useraddr]" rows="4" cols="30">{$user.useraddr}</textarea>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">居住时长</label>
									<div class="controls">
										<select {$types_dis} name="options[addr_time]">
											<php>$tpl_selected=$user['addr_time']=='三个月'?"selected":"";</php>
											<option {$tpl_selected} value="三个月">三个月</option>
											<php>$tpl_selected=$user['addr_time']=='六个月'?"selected":"";</php>
											<option {$tpl_selected} value="六个月">六个月</option>
											<php>$tpl_selected=$user['addr_time']=='一年'?"selected":"";</php>
											<option {$tpl_selected} value="一年">一年</option>
											<php>$tpl_selected=$user['addr_time']=='两年'?"selected":"";</php>
											<option {$tpl_selected} value="两年">两年</option>
											<php>$tpl_selected=$user['addr_time']=='两年以上'?"selected":"";</php>
											<option {$tpl_selected} value="两年以上">两年以上</option>
										</select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">父亲名字</label>
									<div class="controls">
										<input {$types_dis} type="text" name="options[parent_f_n]" value="{$user.parent_f_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input {$types_dis} type="text" name="options[parent_f_t]" value="{$user.parent_f_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">母亲名字</label>
									<div class="controls">
										<input {$types_dis} type="text" name="options[parent_m_n]" value="{$user.parent_m_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input {$types_dis} type="text" name="options[parent_m_t]" value="{$user.parent_m_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">同学A</label>
									<div class="controls">
										<input {$types_dis} type="text" name="options[classm_a_n]" value="{$user.classm_a_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input {$types_dis} type="text" name="options[classm_a_t]" value="{$user.classm_a_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">同学B</label>
									<div class="controls">
										<input {$types_dis} type="text" name="options[classm_b_n]" value="{$user.classm_b_n}"><span class="form-required">&nbsp&nbsp&nbsp&nbsp电话号码&nbsp&nbsp<input {$types_dis} type="text" name="options[classm_b_t]" value="{$user.classm_b_t}"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">是否禁止登录</label>
									<div class="controls">
										<select name="options[user_status]">
										<php>$html_cache_on_checked=$user_status=$user['user_status']=='0'?"selected":"";</php>
										<option value="0" {$html_cache_on_checked}>禁用</option>
										<php>$html_cache_on_checked=$user['user_status']=='1'?"selected":"";</php> 
										<option value="1" {$html_cache_on_checked}>正常</option>
									</select>
									</div>
								</div>
							</fieldset>
					</div>
				</div>

				<div class="form-actions">
					<button type="submit" class="btn btn-primary  js-ajax-submit">{:L("SAVE")}</button>
				</div>
			</fieldset>
		</form>
		
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>